/*
 * URL: http://code.google.com/p/nagatsuki-accounting-lib/
 */
/**
 * $Id: Ledger.java 112 2009-07-27 08:32:14Z tanaka.akira.2006 $
 */
package com.googlecode.nagatsuki.accountinglib.model.ledger;

import java.util.Collections;
import java.util.SortedMap;
import java.util.TreeMap;

import com.googlecode.nagatsuki.accountinglib.model.Account;
import com.googlecode.nagatsuki.accountinglib.model.Model;
import com.googlecode.nagatsuki.accountinglib.model.journal.Entry;

/**
 * 勘定元帳クラス
 *
 * @author tanaka.akira.2006
 *
 */
public class Ledger implements Model {

	/**
	 * SID
	 */
	private static final long serialVersionUID = -6083822888893732503L;

	/** 勘定科目 */
	public Account account;

	/**
	 * 借方一覧
	 * <p>
	 * キーは、取引番号
	 * </p>
	 */
	public SortedMap<String, Entry> debits = Collections
			.synchronizedSortedMap(new TreeMap<String, Entry>());

	/**
	 * 貸方一覧
	 * <p>
	 * キーは、取引番号
	 * </p>
	 */
	public SortedMap<String, Entry> credits = Collections
			.synchronizedSortedMap(new TreeMap<String, Entry>());

	public Ledger(Account account) {
		this.account = account;
	}

	public Ledger() {

	}

}
